package utill;

import java.io.IOException;
import java.util.Properties;

public class Mannagr {
    Properties prop=null;
    private Mannagr(){
        try {
            prop = new Properties ();
            prop.load ( Mannagr.class.getResourceAsStream ( "/jdbc.properties" ) );
        } catch (IOException e) {
            e.printStackTrace ();
        }
    }

    private static Mannagr cm = new Mannagr();

    public static Mannagr getManager(){
        return cm;
    }

    public String getValue(String key){
        return (String) prop.get ( key );
    }
}
